package com.nb.mapper;

import com.nb.entity.SysRoleDeptEntity;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;


@Mapper
public interface SysRoleDeptMapper extends BaseMapper<SysRoleDeptEntity> {
    /**
     * 根据角色ID删除所有部门关联
     */
    @Delete("DELETE FROM sys_role_dept WHERE role_id = #{roleId}")
    void deleteByRoleId(Long roleId);
}